import { BundleConfig } from "../config/BundleConfig";


export enum UI_Cache_Type {
    always, //一直存在
    noCache, //不缓存
}

export class UI_Config {
    public path: string;    //路径
    public cacheType: UI_Cache_Type; //缓存类型
    public isSingle: boolean; //是否单例
    public bundleName: string; //所在bundle名字

    constructor(path: string, cacheType: UI_Cache_Type = UI_Cache_Type.always, isSingle: boolean = true,
        bundleName: string = BundleConfig.main) {
        this.path = path;
        this.cacheType = cacheType;
        this.isSingle = isSingle;
        this.bundleName = bundleName;
    }
}

